﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Inscription.aspx.cs" Inherits="INSTA.EcoleGestion.FORMS.Inscription" %>
 
<asp:Content ID="Content1" runat="server" ContentPlaceHolderID="MainContent">
    
    <h1>Inscription</h1>

    <div class="form-horizontal custom-form">
    
        <div class="form-group">
            <label for="lastname" class="col-sm-2 control-label">Nom :</label>
            <div class="col-sm-10">
                <asp:TextBox ID="TextBoxNom"  runat="server" CssClass="form-control" Width="150"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1"  runat="server"  ControlToValidate="TextBoxNom" ErrorMessage="*Veuillez mettre un nom" ></asp:RequiredFieldValidator>
            </div>
        </div>
    
        <div class="form-group">
            <label for="firstname" class="col-sm-2 control-label">Prenom :</label>
            <div class="col-sm-10">
              <asp:TextBox ID="TextBoxPrenom"  runat="server"  CssClass="form-control" Width="150"></asp:TextBox><asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="TextBoxPrenom" ErrorMessage="*Veuillez mettre un prenom" ></asp:RequiredFieldValidator>
            </div>
        </div>

        <div class="form-group">
            
            <div class="col-xs-10 col-xs-offset-2">
                <div class="row">
                    <div class="col-sm-3">
                        <div class="row">
                            <label for="day" class="col-sm-5 control-label">Jour :</label>
                            <div class="col-sm-7">
                                <asp:DropDownList ID="jj" runat="server"  CssClass="form-control" With="50%" ></asp:DropDownList>
   <asp:RequiredFieldValidator ID="RequiredFieldValidator5"  runat="server"  ControlToValidate="jj" ErrorMessage="*Choisir un jour" ></asp:RequiredFieldValidator>
                            </div>
                        </div>
                    </div>
            
                    <div class="col-sm-3">
                        <div class="row">
                            <label for="month" class="col-sm-5 control-label">Mois :</label>
                            <div class="col-sm-7">
                                <asp:DropDownList ID="mm" runat="server" CssClass="form-control" With="50%"></asp:DropDownList>
                                   <asp:RequiredFieldValidator ID="RequiredFieldValidator7"  runat="server"  ControlToValidate="mm" ErrorMessage="*Choisir un mois" ></asp:RequiredFieldValidator>

                            </div>
                        </div>
                    </div>
            
                    <div class="col-sm-3">
                        <div class="row">
                            <label for="year" class="col-sm-5 control-label">Année :</label>
                            <div class="col-sm-7">
                                <asp:DropDownList ID="aa" runat="server" CssClass="form-control"  With="50%"></asp:DropDownList>
                                   <asp:RequiredFieldValidator ID="RequiredFieldValidator8"  runat="server"  ControlToValidate="aa" ErrorMessage="*Choisir une année" ></asp:RequiredFieldValidator>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>

        <div class="form-group">
            <label for="type" class="col-sm-2 control-label">Type :</label>
            <div class="col-sm-10">
                <asp:DropDownList ID="DropDownList1" CssClass="form-control"   runat="server" Width="150"></asp:DropDownList>
                     <asp:RequiredFieldValidator ID="RequiredFieldValidator11"  runat="server"  ControlToValidate="DropDownList1" ErrorMessage="*Choisir quel type" ></asp:RequiredFieldValidator> 
            </div>
        </div>
        


        <div class="form-group">
            <label for="email" class="col-sm-2 control-label">Email :</label>
            <div class="col-sm-10">
             <asp:TextBox ID="TextBoxEmail" CssClass="form-control"  runat="server" Width="150"></asp:TextBox> <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="TextBoxEmail" ErrorMessage="Veuillez entrer une adresse email" ></asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="TextBoxEmail"
                ErrorMessage="  *Adresse Email incorrecte" ValidationExpression="^([a-zA-Z0-9_\-\.]+)@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([a-zA-Z0-9\-]+\.)+))([a-zA-Z]{2,4})$">
                </asp:RegularExpressionValidator>
            </div>
        </div>


        <div class="form-group">
            <label for="telephone" class="col-sm-2 control-label">Tel :</label>
            <div class="col-sm-10">
                <asp:TextBox ID="TextBoxTel" CssClass="form-control"  runat="server" Width="150"></asp:TextBox><asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="TextBoxTel" ErrorMessage="Veuillez entrer un numéro de téléphone" ></asp:RequiredFieldValidator>

                <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ControlToValidate="TextBoxTel"
                                ErrorMessage="*Numéro de téléphone incorrect" ValidationExpression="^[0]\d-\d{2}-\d{2}-\d{2}-\d{2}">
                </asp:RegularExpressionValidator>
            </div>
        </div>
    

        <div class="form-group">
            <label for="addresse" class="col-sm-2 control-label">Adresse :</label>
            <div class="col-sm-10">
                <asp:TextBox ID="TextBoxAdresse" CssClass="form-control"  runat="server" Width="150"></asp:TextBox>
                 <asp:RequiredFieldValidator ID="RequiredFieldValidator6"  runat="server"  ControlToValidate="TextBoxAdresse" ErrorMessage="*Veuillez mettre une adresse" ></asp:RequiredFieldValidator>
            </div>
        </div>
  
       
        <div class="form-group">
            <label for="password" class="col-sm-2 control-label">Password :</label>
            <div class="col-sm-10"> 
               <asp:TextBox ID="TextBoxPassword" CssClass="form-control"  runat="server" TextMode="Password" Width="150"></asp:TextBox>
             <asp:RequiredFieldValidator ID="RequiredFieldValidator9"  runat="server"  ControlToValidate="TextBoxPassword" ErrorMessage="*Choisir un password" ></asp:RequiredFieldValidator>

                  </div>
        </div>
    
    
            <div class="col-sm-10">
                <label for="promotion" class="col-sm-2 control-label">Promotion :</label> 
                <asp:DropDownList ID="DropDownListPromotion" CssClass="form-control"  runat="server" Width="150"></asp:DropDownList>
              <asp:RequiredFieldValidator ID="RequiredFieldValidator10"  runat="server"  ControlToValidate="DropDownListPromotion" ErrorMessage="*Choisir une promotion" ></asp:RequiredFieldValidator>
                 </div>
        </div>
        
    
     
        <div class="pull-right">
             <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
        </div>
       
         <div class="form-group">
            
            <label for="inscription" class="col-sm-2 control-label"></label>
             <asp:Button ID="Button1"  CssClass="btn btn-success btn-lg" runat="server" OnClick="ButtonInscription" Text="Inscription" Width="186px" />
                
    </div>
      

    </asp:Content>